package com.liveinstars.activity.business.activity.repository.facade;

import com.liveinstars.activity.business.activity.repository.po.ActivityMembers;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ting
 * @since 2020-08-24
 */
public interface IActivityMembersService extends IService<ActivityMembers> {

    List<ActivityMembers> listByUserId(Integer userId, int i);

    List<ActivityMembers> listByActivityId(Integer id);

    int countByActivityId(Integer activityId);

    ActivityMembers getActivityMemberByActivityIdAndUserId(Integer activityId, Integer userId);

    boolean addMember(ActivityMembers members);
}
